package com.alex.consumer.service;

import com.alex.ticket.service.TicketService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{

    @Reference
    TicketService ticketService;

    public String hello() {
        String ticket = ticketService.getTicket();
        System.out.println("消费者: " + ticket);
        return ticket;
    }
}
